﻿using UnityEngine;
using System.Collections;

public class GunScript : MonoBehaviour
{
		
		Animator anim;
		// Use this for initialization
		void Start ()
		{
				anim = GetComponent<Animator> ();
		}
	
		// Update is called once per frame
		void Update ()
		{
				if (Controll.Instance.Shot) {
						anim.SetTrigger ("shoot");
						audio.Play ();
						anim.speed = 2;
					
				}
				//	Destroy (fire, 2);
		}
}
